Skip to content

gh-155052: Fix docstring of decimal.Context.copy - #155062

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
BHUVANSH855:fix-155052-decimal-context-copy-docstring
Aug 2, 2026
Merged

gh-155052: Fix docstring of decimal.Context.copy#155062
serhiy-storchaka merged 2 commits into
python:mainfrom
BHUVANSH855:fix-155052-decimal-context-copy-docstring

Conversation

@BHUVANSH855

@BHUVANSH855 BHUVANSH855 commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Update the Argument Clinic docstring for decimal.Context.copy() to match its actual behavior and the existing library documentation.

The previous docstring incorrectly stated that flags are cleared, while Context.copy() preserves them. Since __copy__() and __reduce__() share the same Argument Clinic input, their docstrings are updated as well.

Closes issue gh-155052

@johnslavik

This comment was marked as resolved.

@skirpichev skirpichev added needs backport to 3.15 pre-release feature fixes, bugs and security fixes needs backport to 3.14 bugs and security fixes labels Aug 2, 2026
@skirpichev

Copy link
Copy Markdown
Member

CC @serhiy-storchaka

@BHUVANSH855
BHUVANSH855 force-pushed the fix-155052-decimal-context-copy-docstring branch from 2084196 to 468472e Compare August 2, 2026 09:44
@serhiy-storchaka
serhiy-storchaka merged commit 04a1fcf into python:main Aug 2, 2026
54 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @BHUVANSH855 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @BHUVANSH855 and @serhiy-storchaka, I could not cleanly backport this to 3.15 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 04a1fcfdabb3a9d61cc247dfec13d601ce3398e9 3.15

@miss-islington-app

Copy link
Copy Markdown

Sorry, @BHUVANSH855 and @serhiy-storchaka, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 04a1fcfdabb3a9d61cc247dfec13d601ce3398e9 3.14

@BHUVANSH855

Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka
i can backport these, should i ?

@serhiy-storchaka

Copy link
Copy Markdown
Member

It would be nice.

@BHUVANSH855

Copy link
Copy Markdown
Contributor Author

It would be nice.

ok I am working on backporting this, and soon submit backport PRs.

@bedevere-app

bedevere-app Bot commented Aug 2, 2026

Copy link
Copy Markdown

GH-155081 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 2, 2026
@bedevere-app

bedevere-app Bot commented Aug 2, 2026

Copy link
Copy Markdown

GH-155082 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Aug 2, 2026
@bedevere-app

bedevere-app Bot commented Aug 2, 2026

Copy link
Copy Markdown

GH-155083 is a backport of this pull request to the 3.14 branch.

serhiy-storchaka pushed a commit that referenced this pull request Aug 2, 2026
serhiy-storchaka pushed a commit that referenced this pull request Aug 2, 2026
…H-155083) (GH-155088)

(cherry picked from commit 55ab1a6)

Co-authored-by: Bhuvansh <bhuvanshkataria@gmail.com>
@bedevere-bot

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 FreeBSD Refleaks 3.15 (tier-3) has failed when building commit 6ce19a8.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/2056/builds/283) and take a look at the build logs.
  4. Check if the failure is related to this commit (6ce19a8) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#/builders/2056/builds/283

Failed tests:

  • test_datetime
  • test.test_asyncio.test_ssl

Failed subtests:

  • test_remote_shutdown_receives_trailing_data - test.test_asyncio.test_ssl.TestSSL.test_remote_shutdown_receives_trailing_data

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.15.opsec-fbsd14.refleak/build/Lib/test/test_asyncio/test_ssl.py", line 1425, in test_remote_shutdown_receives_trailing_data
    self.loop.run_until_complete(client(srv.addr))
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/home/buildbot/buildarea/3.15.opsec-fbsd14.refleak/build/Lib/asyncio/base_events.py", line 724, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "/home/buildbot/buildarea/3.15.opsec-fbsd14.refleak/build/Lib/test/test_asyncio/test_ssl.py", line 1409, in client
    await future
  File "/home/buildbot/buildarea/3.15.opsec-fbsd14.refleak/build/Lib/test/test_asyncio/test_ssl.py", line 1417, in wrapper
    meth(sock)
    ~~~~^^^^^^
  File "/home/buildbot/buildarea/3.15.opsec-fbsd14.refleak/build/Lib/test/test_asyncio/test_ssl.py", line 1363, in server
    self.assertEqual(data_len, CHUNK * SIZE)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 0 != 4194304

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants